import { lazy } from "react";

//------------小辉钱包-小辉宝--router--start----------
const HuaTongBankJiuJiuProductServiceAgreement = lazy(() =>
	import("@views/agreement/HuaTongBankJiuJiuProductServiceAgreement")
);
const HuaTongBankElectronicAccountServiceAgreement = lazy(() =>
	import("@views/agreement/HuaTongBankElectronicAccountServiceAgreement")
);
const IndividualTaxResidentStatusStatement = lazy(() =>
	import("@views/agreement/IndividualTaxResidentStatusStatement")
);
const HuaTongBankFuECunProductServiceAgreement = lazy(() =>
	import("@views/agreement/HuaTongBankFuECunProductServiceAgreement")
);
const SupportBankPage = lazy(() =>
	import("@views/viewXHB/electronicAccounts/supportBank/SupportBankPage")
);
const AddBankCardPage = lazy(() =>
	import("@views/viewXHB/electronicAccounts/addBankCard/AddBankCardPage")
);
const ReplaceBankCardPage = lazy(() =>
	import(
		"@views/viewXHB/electronicAccounts/replaceBankCard/ReplaceBankCardPage"
	)
);
const BankDetailPage = lazy(() =>
	import("@views/viewXHB/electronicAccounts/BankDetail/BankDetail")
);
const RechargeAccountPage = lazy(() =>
	import("@views/viewXHB/electronicAccounts/RechargeAccount/RechargeAccount")
);
const WithdrawAccountPage = lazy(() =>
	import("@views/viewXHB/electronicAccounts/WithdrawAccount/WithdrawAccount")
);
const BillRecord = lazy(() => import("@views/viewXHB/billRecord/BillRecord"));
const AuthPay = lazy(() =>
	import("@views/viewXHB/electronicAccounts/AuthPay/AuthPay")
);
const AuthenticatePayCode = lazy(() =>
	import(
		"@views/viewXHB/electronicAccounts/AuthenticatePayCode/AuthenticatePayCode"
	)
);
const RecordDetail = lazy(() =>
	import("@views/viewXHB/billRecord/RecordDetail")
);
const TransactionDetail = lazy(() =>
	import("@views/viewXHB/transaction/transactionDetail/transactionDetail")
);
const TransactionRecord = lazy(() =>
	import("@views/viewXHB/transaction/transactionRecord/transactionRecord")
);
const WalletHomePage = lazy(() =>
	import("@views/viewXHB/walletHome/WalletHomeNew")
);
const contractSuccess = lazy(() =>
	import("@views/viewXHB/contractStatus/contractSuccess")
);
const contractFail = lazy(() =>
	import("@views/viewXHB/contractStatus/contractFail")
);
const contracting = lazy(() =>
	import("@views/viewXHB/contractStatus/contracting")
);
const newbieZone = lazy(() => import("@views/viewXHB/newbieZone/newbieZone"));

const IntroductionBankLoans = lazy(() =>
	import("@views/viewXHB/walletHome/IntroductionBankLoans")
);
const SendMSGCode = lazy(() =>
	import("@views/../component/sendMSGCode/sendMSGCode")
);
const WalletInfo = lazy(() => import("@views/viewXHB/walletHome/WalletInfo"));
const CumulativeIncomePage = lazy(() =>
	import("@views/viewXHB/electronicAccounts/CumulativeIncome/CumulativeIncome")
);
const RechargeSuccess = lazy(() =>
	import("@views/viewXHB/electronicAccounts/RechargeAccount/RechargeSuccess")
);
const DepositDetail = lazy(() =>
	import("@views/viewXHB/depositDetail/DepositDetail")
);
const TransferXHBInto = lazy(() =>
	import("@views/viewXHB/transferXHB/TransferXHBInto")
);
const BankIndex = lazy(() =>
	import("@views/viewXHB/electronicAccounts/BankIndex/BankIndex")
);
const WithdrawSuccess = lazy(() =>
	import("@views/viewXHB/electronicAccounts/WithdrawAccount/WithdrawSuccess")
);
const TransferXHBSuccess = lazy(() =>
	import("@views/viewXHB/transferXHB/TransferXHBSuccess")
);
const XhbLiveness = lazy(() => import("@views/viewXHB/liveness/index"));

const TransferXHBOut = lazy(() =>
	import("@views/viewXHB/transferXHB/TransferXHBOut")
);
const TransferXHBOutByPay = lazy(() =>
	import("@views/viewXHB/transferXHB/TransferXHBOutByPay")
);
const accountpassword = lazy(() => import("@views/viewXHB/accountpassword"));

const WalletIndex = lazy(() => import("@views/viewXHB/walletIndex/index"));
const modifyIDCardImgPage = lazy(() =>
	import("@views/viewXHB/electronicAccounts/IDCardInfoModify/IDCardInfoModify")
);
const rescissionfail = lazy(() => import("@views/viewXHB/rescissionfail"));
const rescissionsucc = lazy(() => import("@views/viewXHB/rescissionsucc"));
//常见问题
const XhbPorblem = lazy(() => import("@views/viewXHB/xhbPorblem/xhbPorblem"));
const DepositItemDetails = lazy(() =>
	import("@views/viewXHB/depositDetail/DepositItemDetails")
);
const IncomeDetail = lazy(() =>
	import("@views/viewXHB/depositDetail/IncomeDetail")
);
const PaymentSetting = lazy(() =>
	import("@views/viewXHB/paymentSetting/PaymentSetting")
);
const PayDetail = lazy(() => import("@views/viewXHB/payDetail/PayDetail"));

//小辉包支付开通
const SignXHB = lazy(() => import("@views/viewXHB/signXHB/SignXHB"));
//小辉包支付常见问题
const XhbPayHelp = lazy(() => import("@views/viewXHB/signXHB/XhbPayHelp"));
//《福建华通银行小辉宝支付服务协议》
const SignXHBXY = lazy(() => import("@views/viewXHB/signXHB/SignXHBXY"));
//小辉包支付开通结果
const SignRes = lazy(() => import("@views/viewXHB/signXHB/SignRes"));

const XhbAddBank = lazy(() => import("@views/viewXHB/addBank"));

const XhdSettransactionpassword = lazy(() =>
	import("@views/viewXHB/setPayPassword/Settransactionpassword")
);

const XhbOpenAccountResult = lazy(() =>
	import("@views/viewXHB/openAccountResult")
);

const XhdsetPayPwd = lazy(() =>
	import("@views/viewXHB/setPayPassword/SetPayPassword")
);
//------------小辉钱包-小辉宝--router--end------------
/*******************通户 start */
const IdentityVerification = lazy(() =>
	import("@views/viewXHB/identityVerification/index")
); //身份核实
const ElectronicAccountExist = lazy(() =>
	import("@views/viewXHB/electronicAccountExist/ElectronicAccountExist.jsx")
);
const ElectronicAccountList = lazy(() =>
	import("@views/viewXHB/electronicAccountList/electronicAccountList")
);
const LcService = lazy(() => import("@views/agreement/lcService"));
const NewPersonCoupon = lazy(() => import("@views/viewXHB/newPersonCoupon")); //新人优惠券
const CheckCoupon = lazy(() =>
	import("@views/viewXHB/newPersonCoupon/checkCoupon")
); //查看优惠券
const NewPersonCouponRule = lazy(() =>
	import("@views/viewXHB/newPersonCoupon/rule")
); //规则
/*******************通户 end */

/**********0324  小辉宝余额支付 */
const xhbBalanceNoAccount = lazy(() =>
	import("@views/viewXHB/balance/noAccount")
); // 小辉宝余额支付未开户状态

const xhbBalanceAccountOpened = lazy(() =>
	import("@views/viewXHB/balance/accountOpened")
); // 小辉宝余额支付已开户签约状态

const xhbBalanceNoSign = lazy(() => import("@views/viewXHB/balance/noSign")); // 小辉宝余额支付已开户未签约状态

const xhbBalanceInSign = lazy(() => import("@views/viewXHB/balance/inSign")); // 小辉宝余额支付签约中状态

const xhbRechargeRecord = lazy(() => import("@views/viewXHB/rechargeRecord"));  //充值明细
const xhbActivity = lazy(() => import("@views/viewXHB/xhbActivity"));  //小辉宝活动


/**********0324  小辉宝余额支付 end*/

const xhbRouters = [
	{
		pathName: "/xhbsignRes/:amount",
		component: SignRes,
		cacheKey: "xhbsignRes",
		cacheRouter: false
	},
	{
		pathName: "/xhbsignXHB/:amount",
		component: SignXHB,
		cacheKey: "xhbsignXHB",
		cacheRouter: false
	},
	{
		pathName: "/signRes",
		component: SignRes,
		cacheKey: "signRes",
		cacheRouter: false
	},
	{
		pathName: "/signXHBXY",
		component: SignXHBXY,
		cacheKey: "signXHBXY",
		cacheRouter: false
	},
	{
		pathName: "/xhbPayHelp",
		component: XhbPayHelp,
		cacheKey: "xhbPayHelp",
		cacheRouter: false
	},
	{
		pathName: "/signXHB",
		component: SignXHB,
		cacheKey: "signXHB",
		cacheRouter: false
	},
	{
		pathName: "/incomeDetail/:tradeNumber/:productDetail",
		component: IncomeDetail,
		cacheKey: "incomeDetail",
		cacheRouter: false
	},
	{
		pathName: "/depositItemDetails/:tradeNumber/:lock/:productDetail",
		component: DepositItemDetails,
		cacheKey: "depositItemDetails",
		cacheRouter: true
	},
	{
		pathName: "/withdrawSuccess",
		component: WithdrawSuccess,
		cacheKey: "withdrawSuccess",
		cacheRouter: false
	},
	{
		pathName: "/transferXHBSuccess/:comeType/:data",
		component: TransferXHBSuccess,
		cacheKey: "transferXHBSuccess",
		cacheRouter: false
	},
	{
		pathName: "/bankIndex",
		component: BankIndex,
		cacheKey: "bankIndex",
		cacheRouter: false
	},
	{
		pathName: "/xhbAddBank",
		component: XhbAddBank,
		cacheKey: "xhbAddBank",
		cacheRouter: true
	},
	{
		pathName: "/xhdSettransactionpassword",
		component: XhdSettransactionpassword,
		cacheKey: "xhdSettransactionpassword",
		cacheRouter: false
	},
	{
		pathName: "/xhbOpenAccountResult",
		component: XhbOpenAccountResult,
		cacheKey: "xhbOpenAccountResult",
		cacheRouter: false
	},
	{
		pathName: "/xhdsetPayPwd",
		component: XhdsetPayPwd,
		cacheKey: "XhdsetPayPwd",
		cacheRouter: false
	},
	{
		pathName: "/transferXHBOutByPay/:productId",
		component: TransferXHBOutByPay,
		cacheKey: "transferXHBOutByPay",
		cacheRouter: false
	},
	{
		pathName: "/transferXHBOut/:tradeNumber",
		component: TransferXHBOut,
		cacheKey: "transferXHBOut",
		cacheRouter: true
	},
	{
		pathName: "/transferXHBInto/:productId",
		component: TransferXHBInto,
		cacheKey: "transferXHBInto",
		cacheRouter: true
	},
	{
		pathName: "/depositDetail",
		component: DepositDetail,
		cacheKey: "depositDetail",
		cacheRouter: true
	},
	{
		pathName: "/walletInfo/:productId",
		component: WalletInfo,
		cacheKey: "walletInfo",
		cacheRouter: false
	},
	{
		pathName: "/rechargeSuccess/:eleAmout/:amount/:cardName/:cardNo",
		component: RechargeSuccess,
		cacheKey: "rechargeSuccess",
		cacheRouter: false
	},
	{
		pathName: "/cumulativeIncome",
		component: CumulativeIncomePage,
		cacheKey: "cumulativeIncome",
		cacheRouter: false
	},
	{
		pathName: "/walletHome",
		component: WalletHomePage,
		cacheKey: "walletHome",
		cacheRouter: false,
		exact: true
	},
	{
		pathName: "/contractSuccess",
		component: contractSuccess,
		cacheKey: "contractSuccess",
		cacheRouter: false,
		exact: true
	},
	{
		pathName: "/contractFail",
		component: contractFail,
		cacheKey: "contractFail",
		cacheRouter: false,
		exact: true
	},
	{
		pathName: "/contracting",
		component: contracting,
		cacheKey: "contracting",
		cacheRouter: false,
		exact: true
	},
	{
		pathName: "/newbieZone",
		component: newbieZone,
		cacheKey: "newbieZone",
		cacheRouter: false,
		exact: true
	},
	{
		pathName: "/IntroductionBankLoans",
		component: IntroductionBankLoans,
		cacheKey: "IntroductionBankLoans",
		cacheRouter: false,
		exact: true
	},
	{
		pathName: "/sendMSGCode",
		component: SendMSGCode,
		cacheKey: "sendMSGCode",
		cacheRouter: false
	},
	{
		pathName: "/bankDetailPage",
		component: BankDetailPage,
		cacheKey: "bankDetailPage",
		cacheRouter: false
	},
	{
		pathName: "/transactionDetail",
		component: TransactionDetail,
		cacheKey: "transactionDetail",
		cacheRouter: true
	},
	{
		pathName: "/transactionRecord/:channelCode",
		component: TransactionRecord,
		cacheKey: "transactionRecord",
		cacheRouter: true
	},
	{
		pathName: "/withdrawAccount",
		component: WithdrawAccountPage,
		cacheKey: "withdrawAccount",
		cacheRouter: true
	},
	{
		pathName: "/rechargeAccount",
		component: RechargeAccountPage,
		cacheKey: "rechargeAccountPage",
		cacheRouter: true
	},
	{
		pathName: "/xhbauthPay/:data",
		component: AuthPay,
		cacheKey: "xhbauthPay",
		cacheRouter: false
	},
	{
		pathName: "/authPay/:data",
		component: AuthPay,
		cacheKey: "authPay",
		cacheRouter: false
	},
	{
		pathName: "/xhbAuthenticatePayCode/:data",
		component: AuthenticatePayCode,
		cacheKey: "xhbAuthenticatePayCode",
		cacheRouter: false
	},
	{
		pathName: "/AuthenticatePayCode/:data",
		component: AuthenticatePayCode,
		cacheKey: "AuthenticatePayCode",
		cacheRouter: false
	},
	{
		pathName: "/billRecord/:comeType",
		component: BillRecord,
		cacheKey: "billRecord",
		cacheRouter: true
	},
	{
		pathName: "/recordDetail/:comeType",
		component: RecordDetail,
		cacheKey: "billRecord",
		cacheRouter: true
	},
	{
		pathName: "/supportBank/:channelCode",
		component: SupportBankPage,
		cacheKey: "supportBank",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/addBankCard/:data",
		component: AddBankCardPage,
		cacheKey: "addBankCard",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/replaceBankCard",
		component: ReplaceBankCardPage,
		cacheKey: "replaceBankCard",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/huaTongBankElectronicAccountServiceAgreement",
		component: HuaTongBankElectronicAccountServiceAgreement,
		exact: false,
		cacheRouter: false
	},
	{
		pathName: "/huaTongBankJiuJiuProductServiceAgreement",
		component: HuaTongBankJiuJiuProductServiceAgreement,
		exact: false,
		cacheRouter: false
	},
	{
		pathName: "/individualTaxResidentStatusStatement",
		component: IndividualTaxResidentStatusStatement,
		exact: false,
		cacheRouter: false
	},
	{
		pathName: "/huaTongBankFuECunProductServiceAgreement",
		component: HuaTongBankFuECunProductServiceAgreement,
		exact: false,
		cacheRouter: false
	},
	{
		pathName: "/walletIndex",
		component: WalletIndex,
		exact: false
	},
	{
		//常见问题
		pathName: "/xhbPorblem/:productDetail",
		component: XhbPorblem,
		exact: false
	},
	{
		//上传身份证
		pathName: "/modifyIDCardImgPage",
		component: modifyIDCardImgPage,
		exact: false,
		cacheRouter: true,
		cacheKey: "modifyIDCardImgPage"
	},
	{
		//支付密码设置
		pathName: "/accountpassword",
		component: accountpassword,
		exact: false
	},
	{
		//解约失败
		pathName: "/rescissionfail",
		component: rescissionfail,
		exact: false
	},
	{
		//解约成功
		pathName: "/rescissionsucc",
		component: rescissionsucc,
		exact: false
	},
	{
		pathName: "/paymentSetting",
		component: PaymentSetting,
		exact: false
	},
	{
		pathName: "/payDetail",
		component: PayDetail,
		cacheKey: "payDetail",
		exact: false,
		cacheRouter: false
	},
	{
		pathName: "/identityVerification",
		component: IdentityVerification,
		cacheKey: "identityVerification",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/electronicAccountExist",
		component: ElectronicAccountExist,
		cacheKey: "electronicAccountExist",
		exact: false,
		cacheRouter: false
	},
	{
		pathName: "/electronicAccountList",
		component: ElectronicAccountList,
		cacheKey: "electronicAccountList",
		exact: false,
		cacheRouter: false
	},
	{
		pathName: "/lcService",
		component: LcService,
		cacheKey: "electronicAccountList",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/xhbLiveness",
		component: XhbLiveness
	},
	{
		pathName: "/newPersonCoupon",
		component: NewPersonCoupon
	},
	{
		pathName: "/checkCoupon",
		component: CheckCoupon
	},
	{
		pathName: "/newPersonCouponRule",
		component: NewPersonCouponRule
	},

	{
		pathName: "/xhbBalanceNoAccount",
		component: xhbBalanceNoAccount,
		cacheKey: "xhbBalanceNoAccount",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/xhbBalanceAccountOpened",
		component: xhbBalanceAccountOpened,
		cacheKey: "xhbBalanceAccountOpened",
		exact: false,
		cacheRouter: false
	},
	{
		pathName: "/xhbBalanceNoSign",
		component: xhbBalanceNoSign,
		cacheKey: "xhbBalanceNoSign",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/xhbBalanceInSign",
		component: xhbBalanceInSign,
		cacheKey: "xhbBalanceInSign",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/xhbRechargeRecord",
		component: xhbRechargeRecord,
		cacheKey: "xhbRechargeRecord",
		exact: false,
		cacheRouter: true
	},
	{
		pathName: "/xhbActivity",
		component: xhbActivity,
		cacheKey: "xhbActivity",
		exact: false,
		cacheRouter: true
	}
];

export { xhbRouters };
